package com.lefevre.cms.bean.staff;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 系统资源表
 *
 * @author Lefevre
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_resources")
@Entity()
@Table(name = "sys_resources")
public class SysResources implements Serializable {
    private static final long serialVersionUID = 9031856537579017249L;

    @Id
    @Column(length = 50)
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 名称
     **/
    private String name;

    /**
     * 备注
     **/
    private String remarks;

    /**
     * URL
     **/
    private String url;

    /**
     * 附加URL类型 1.GET 2.POST
     **/
    private Integer urlType;

    /**
     * 附加URL所属父ID
     **/
    private String urlParentId;

    /**
     * 优先级
     **/
    private Integer priority;

    /**
     * 模块
     **/
    private String module;

}
